home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 76 / XENIATGM66.iso / Indiana Jones / Indiana Jones.exe / RESOURCE / PREVIEW.GOB / cog_gen_lavafield.cog < prev    next >
Text File  |  1999-11-15  |  1KB  |  81 lines

  1. # Jones 3D Cog Script
  2. #
  3. # Gen_Lavabubble.cog
  4. #
  5. # Sophia helps Indy through a critical gate
  6. #
  7. # [CMG]
  8. #
  9. # (C) 1999 LucasArts Entertainment Co. All Rights Reserved
  10. # ========================================================================================
  11.  
  12. symbols
  13.  
  14. # ................... MESSAGES ...................
  15.  
  16.     message    crossed        
  17.     message    pulse
  18.  
  19. # ................... triggers ...................
  20.  
  21.     surface        oncross
  22.     surface        oncross1
  23.     surface        offcross
  24.     surface        offcross1
  25.  
  26. # .................. cogs .....................    
  27.  
  28.     cog        lavafx0
  29.     cog        lavafx1
  30.     cog        lavafx2
  31.     cog        lavafx3
  32.     cog        lavafx4
  33.     cog        lavafx5
  34.     cog        lavafx6
  35.     cog        lavafx7
  36.     cog        lavafx8
  37.     cog        lavafx9
  38.  
  39. # .................. vars .....................
  40.     int        pulsetime=1        local    
  41.     int        fxcog        local    
  42.  
  43.  
  44. end
  45.  
  46. # ==============================================================================
  47.  
  48. code
  49.  
  50.  
  51.  
  52. # ..............................................................................
  53.  
  54. crossed:
  55.  
  56.     If (GetSenderRef() == oncross)
  57.     {
  58.     SetPulse(pulsetime);
  59.     }
  60.  
  61.     If (GetSenderRef() == offcross)
  62.     {
  63.     SetPulse(0);
  64.     }
  65.     return;
  66.  
  67. # ..............................................................................
  68. pulse:
  69.  
  70. fxcog=RandBetween(0,9);
  71. SendMessage(lavafx0[fxcog], user0);
  72. pulsetime=RandBetween(1,3);
  73. SetPulse(pulsetime);
  74. return;
  75.  
  76. # ..............................................................................
  77. end
  78.  
  79.  
  80.  
  81.